package com.cplsys.iacna.webservice;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;

import com.cplsys.iacna.domain.Formula;
import com.cplsys.iacna.services.IIACNAWebService;

@WebService(endpointInterface = "com.cplsys.iacna.services.IIACNAWebService")
public class IACNAWebServiceImpl implements IIACNAWebService {

	private Formula form;

	public IACNAWebServiceImpl() {
		form = new Formula();
	}

	public void setingredients(Formula formula) {
		form.setBascula(formula.getBascula());
		form.setNumeroParte(formula.getNumeroParte());
		form.setDescripcion(formula.getDescripcion());
		// form.setUm(formula.getUm());
		// form.setEspecificacion(formula.getEspecificacion());
		// form.setMinimo(formula.getMinimo());
		// form.setMaximo(formula.getMaximo());
	}

	@Override
	@WebMethod
	public void getMessageDemo(
			@WebParam(name = "message", partName = "message") String message) {
		System.out.println("WebService Message Demo" + message);
	}

	@Override
	@WebMethod
	@WebResult(partName = "return")
	public Formula getFormula(
			@WebParam(name = "formula", partName = "formula") Formula formula,
			@WebParam(name = "proccessSuccessfuly", partName = "proccessSuccessfuly") boolean proccessSuccessfuly) {
		// TODO Auto-generated method stub
		return null;
	}

}
